package com.epam.training.concurrency.second.task1;

import java.util.concurrent.ExecutionException;
import java.util.logging.Level;
import java.util.logging.Logger;

public class TestCalculate {

	private TestCalculate() {

	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Series series = new Series(100);
		try {
			System.out.println("Serias sum between -100 .. 100: "
					+ series.calculateSeries(1000));
		} catch (InterruptedException e) {
			Logger.getLogger(TestCalculate.class.getName()).log(Level.SEVERE,
					null, e);
		} catch (ExecutionException e) {
			Logger.getLogger(TestCalculate.class.getName()).log(Level.SEVERE,
					null, e);
		}
	}

}
